{
	"size": 0,
	"aggs": {
		"demo":{
			  "terms":{
			    "field": "remote_user",
			    "size": 10000,
			    "exclude" : [0,-1],
			    "order": {
            "_key": "asc"
          }
			  },
			  "aggs": {
        "study_count": {
            "cardinality": {
              "field": "request_params.time.keyword"
            }
          }
        }
			}
	},
	"query": {
		"bool": {
			"must": [{
				"match_all": {}
			},{
				"match_phrase": {
					"request_params.vid": {
						"query": "@vid"
					}
				}
			}],
			"filter": [],
			"should": [],
			"must_not": []
		}
	}
}
